package oving5.card;

public class Card {
	String suit;
	int face;
	
	public Card(){
		
	}
	public Card(String suit, int face){
		if(suit=="S"||suit=="H"||suit=="D"||suit=="C"){
			this.suit=suit;
		}
		else{
			this.suit=null;
		}
		if(face<=13&&face>=1){
			this.face=face;
		}
		else{
			this.face=-1;
		}
	}
	public String getSuit(){
		return suit;
	}
	public int getFace(){
		return face;
	}
	public String toString(){
			return (suit+face);
	}
	
	
}
